from fastapi import APIRouter, Query
from config.db import *
user = APIRouter()

@user.get("/",  summary="获取用户列表")
def users(limit:int=10):
    sql = "select * from user limit %s"
    return db(sql, [limit])